package com.itao.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sjt
 * @Date 2025/1/21 16:12
 */
@RestController
public class VirtualThreadController {

    @GetMapping("/virtual")
    public String virtual(){
        System.out.println("VirtualThreadController.class.getClassLoader() = " + VirtualThreadController.class.getClassLoader());
        return Thread.currentThread().toString();
    }
}
